Optimal. Leaf size=311 \[ -\frac {2 \sin (c+d x) \left (A b^2-a (b B-a C)\right )}{b d \left (a^2-b^2\right ) \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {2 \sqrt {\cos (c+d x)} \left (A b^2-a (b B-a C)\right ) \sqrt {a+b \sec (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{a b d \left (a^2-b^2\right ) \sqrt {\frac {a \cos (c+d x)+b}{a+b}}}+\frac {2 A \sqrt {\frac {a \cos (c+d x)+b}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{a d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {2 C \sqrt {\frac {a \cos (c+d x)+b}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{b d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 1.17, antiderivative size = 311, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 13, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.289, Rules used = {4265, 4098, 4108, 3859, 2807, 2805, 4035, 3856, 2655, 2653, 3858, 2663, 2661} \[ -\frac {2 \sin (c+d x) \left (A b^2-a (b B-a C)\right )}{b d \left (a^2-b^2\right ) \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {2 \sqrt {\cos (c+d x)} \left (A b^2-a (b B-a C)\right ) \sqrt {a+b \sec (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{a b d \left (a^2-b^2\right ) \sqrt {\frac {a \cos (c+d x)+b}{a+b}}}+\frac {2 A \sqrt {\frac {a \cos (c+d x)+b}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{a d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {2 C \sqrt {\frac {a \cos (c+d x)+b}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{b d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2653
Rule 2655
Rule 2661
Rule 2663
Rule 2805
Rule 2807
Rule 3856
Rule 3858
Rule 3859
Rule 4035
Rule 4098
Rule 4108
Rule 4265
Rubi steps
\begin {align*} \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\sqrt {\cos (c+d x)} (a+b \sec (c+d x))^{3/2}} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{(a+b \sec (c+d x))^{3/2}} \, dx\\ &=-\frac {2 \left (A b^2-a (b B-a C)\right ) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}-\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {1}{2} \left (-A b^2+a (b B-a C)\right )+\frac {1}{2} b (b B-a (A+C)) \sec (c+d x)-\frac {1}{2} \left (a^2-b^2\right ) C \sec ^2(c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{b \left (a^2-b^2\right )}\\ &=-\frac {2 \left (A b^2-a (b B-a C)\right ) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}-\frac {\left (2 \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\frac {1}{2} \left (-A b^2+a (b B-a C)\right )+\frac {1}{2} b (b B-a (A+C)) \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{b \left (a^2-b^2\right )}+\frac {\left (C \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{b}\\ &=-\frac {2 \left (A b^2-a (b B-a C)\right ) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {\left (A \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+b \sec (c+d x)}} \, dx}{a}-\frac {\left (\left (-A b^2+a (b B-a C)\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx}{a b \left (a^2-b^2\right )}+\frac {\left (C \sqrt {b+a \cos (c+d x)}\right ) \int \frac {\sec (c+d x)}{\sqrt {b+a \cos (c+d x)}} \, dx}{b \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}\\ &=-\frac {2 \left (A b^2-a (b B-a C)\right ) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {\left (A \sqrt {b+a \cos (c+d x)}\right ) \int \frac {1}{\sqrt {b+a \cos (c+d x)}} \, dx}{a \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {\left (C \sqrt {\frac {b+a \cos (c+d x)}{a+b}}\right ) \int \frac {\sec (c+d x)}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{b \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}-\frac {\left (\left (-A b^2+a (b B-a C)\right ) \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {b+a \cos (c+d x)} \, dx}{a b \left (a^2-b^2\right ) \sqrt {b+a \cos (c+d x)}}\\ &=\frac {2 C \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{b d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}-\frac {2 \left (A b^2-a (b B-a C)\right ) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {\left (A \sqrt {\frac {b+a \cos (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{a \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}-\frac {\left (\left (-A b^2+a (b B-a C)\right ) \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}} \, dx}{a b \left (a^2-b^2\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}}}\\ &=\frac {2 A \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{a d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {2 C \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{b d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}+\frac {2 \left (A b^2-a (b B-a C)\right ) \sqrt {\cos (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{a b \left (a^2-b^2\right ) d \sqrt {\frac {b+a \cos (c+d x)}{a+b}}}-\frac {2 \left (A b^2-a (b B-a C)\right ) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {\cos (c+d x)} \sqrt {a+b \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 34.84, size = 63246, normalized size = 203.36 \[ \text {Result too large to show} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A}{{\left (b \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \sqrt {\cos \left (d x + c\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 2.25, size = 950, normalized size = 3.05 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{\sqrt {\cos \left (c+d\,x\right )}\,{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}}{\left (a + b \sec {\left (c + d x \right )}\right )^{\frac {3}{2}} \sqrt {\cos {\left (c + d x \right )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________